from pwn import *
import requests


def pwn():
    return "flag{P}"


def submit2(flag, token):
    url = "http://192.168.40.10:80/event_attack_defense/submit_flag/"
    data = {
        "flag": flag,
        "token": token,
        "event_hash": "e5720616-6856-418-6056-55696616520.event"
    }

    r = requests.post(url=url, data=data, verify=False)
    print(r.text)


ports = []

for port in ports:
    sh = remote("192.168.49.10", port)
    flag = pwn()
    submit2(flag, "token")
    sh.close()
